import { courseList } from '@/services/ant-design-pro/crm';
import { PageContainer } from '@ant-design/pro-layout';
import ProTable from '@ant-design/pro-table';

const Course: React.FC = () => {

  //配置表格的列信息
  const columns: any = [
    {
      title: "课程编号",
      dataIndex: "no"
    }, {
      title: "课程学科",
      dataIndex: "type"
    }, {
      title: "课程名称",
      dataIndex: "name"
    }, {
      title: "课程价格",
      dataIndex: "price"
    }, {
      title: "使用人群",
      dataIndex: "accept"
    }, {
      title: "课程介绍",
      dataIndex: "accept"
    }, {
      title: "创建时间",
      dataIndex: "accept"
    }, {
      title: "操作",
      dataIndex: "accept"
    }
  ]

  return (
    <PageContainer>
      <ProTable request={courseList} columns={columns}>

      </ProTable>
    </PageContainer>
  );
}


export default Course;